<?PHP
Zend_Loader::loadClass('Zend_Auth');
$authClass = Zend_Auth::getInstance();

if ($authClass->hasIdentity()) {
    $auth = $authClass->getStorage()->read();

    $id = $auth['usuario_id'];

    $usuarioModel = new Application_Model_Usuario();

    $usuario = $usuarioModel->find($id)->current();
}
?>
<?PHP if (isset($usuario)): ?>
<div class="login">
<p class="saudlog">Seja Bem-vindo,    
<?PHP echo $usuario['nome']; ?>
</p>
</div>
<?PHP else: ?>
    <div class="login">     
		<form id="login-form" method="post" action="<?PHP echo $this->url(array('controller' => 'login'), null, true); ?>">
            <input type="text" name="usuario" value="Usuário" alt="Usuário"/>
            <input type="password" name="senha" value="Senha" alt="Senha"/>
            <input type="submit" value="Login"/>
        </form>
	</div>	
<?PHP endif; ?>